DIRS=mytbf

CFLAGS+=-I../include -I./mytbf -pthread
LDFLAGS+=-pthread -lmytbf -L./mytbf
DISTDIR=../../dist

all: server
%:
	for dirent in $(DIRS) ; do \
		make -C $${dirent} $@ ;\
	done

server: main.o medialib.o thr_channel.o thr_hoster.o
	$(CC) $(LDFLAGS) -o $@ $^

clean:
	rm -rf *.o server

